package website.lhc.chapter2;

/**
 * @author: longhc@citycloud.com.cn
 * @since: 2022/12/8 11:15
 * @version: 1.0
 */
public class Context {

    private final Strategy strategy;

    public Context(Strategy strategy) {
        this.strategy = strategy;
    }

    public void contextInterface() {
        this.strategy.algorithmInterface();
    }
}
